package com.ruoyi.common.entity.DO.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.entity.DO.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "shop_credit_order")
public class ShopCreditOrderDO extends BaseDO {
    @Id
    private Long id;
    private Long shopId;
    private String orderSn;
    private String productCoverUrl;
    private Long memberId;
    private Long productId;
    private String productSn;
    private Integer productType;
    private String productName;
    private Integer productUnitPrice;
    private Integer productQuantity;
    private Integer orderStatus;
    private Integer orderCost;
    private Integer payCost;
    private String exchangeCode;
    private String exchangeCodeUrl;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date completeTime;
    private Date cancelTime;
    private String cancelReason;
    private String createBy;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
    private String updateBy;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;
}
